package cn.qqncn.furniture.service;

import cn.qqncn.furniture.mapper.CategoryMapper;
import cn.qqncn.furniture.pojo.domain.Category;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author zkw
 * @ClassName CategoryService.java
 * @Description 商品类别服务层
 * @createTime 2020年12月13日 01:19:00
 */
@Service
public class CategoryService {
    @Resource
    CategoryMapper categoryMapper;

    public List<Category> getAll(){
        List<Category> categories = categoryMapper.selectAll();
        return categories;
    }




}
